<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <groupId>com.uaf.vxalipaybill</groupId>
    <artifactId>uaf-vxalipaybill-parent</artifactId>
    <version>0.0.1-RELEASE</version>
    <packaging>pom</packaging>
    <description>微信支付宝账单-parent</description>

    <modules>
        <module>uaf-vxalipaybill-api</module>
        <module>uaf-vxalipaybill-feign</module>
        <module>uaf-vxalipaybill-provider</module>
    </modules>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <com.uaf.version>0.0.1-RELEASE</com.uaf.version>
    </properties>

    <distributionManagement>
        <repository>
            <id>releases</id>
            <name>Local Nexus Repository</name>
            <url>http://nexus.uaf.com.cn:8081/repository/releases/</url>
        </repository>
    </distributionManagement>

     <dependencyManagement>
            <dependencies>
                <!--聚合服务（提供oracle数据库，spring boot，spring cloud等支持）-->
                <dependency>
                    <groupId>com.uaf</groupId>
                    <artifactId>microservice-provider</artifactId>
                    <version>${com.uaf.version}</version>
                </dependency>
                 <!--分表插件-->
                 <dependency>
                        <groupId>org.apache.shardingsphere</groupId>
                        <artifactId>sharding-jdbc-spring-boot-starter</artifactId>
                         <version>4.0.0-RC1</version>
                </dependency>
                <dependency>
                    <groupId>com.uaf.vxalipaybill</groupId>
                    <artifactId>uaf-vxalipaybill-api</artifactId>
                    <version>${com.uaf.version}</version>
                </dependency>
                <!--核心微服务api接口-->
                <dependency>
                    <groupId>com.uaf</groupId>
                    <artifactId>microservice-api</artifactId>
                    <version>${com.uaf.version}</version>
                </dependency>
                <dependency>
                    <groupId>com.uaf</groupId>
                    <artifactId>microservice-feign</artifactId>
                    <version>${com.uaf.version}</version>
                </dependency>
                <!--公共工具类-->
                <dependency>
                    <groupId>com.uaf</groupId>
                    <artifactId>microservice-common</artifactId>
                    <version>${com.uaf.version}</version>
                    <type>pom</type>
                    <scope>import</scope>
                </dependency>
                <!--统一身份认证-->
                <dependency>
                    <groupId>com.uaf</groupId>
                    <artifactId>microservice-security</artifactId>
                    <version>${com.uaf.version}</version>
                    <type>pom</type>
                    <scope>import</scope>
                </dependency>
                <!--日志服务-->
                <dependency>
                    <groupId>com.uaf</groupId>
                    <artifactId>microservice-log</artifactId>
                    <version>${com.uaf.version}</version>
                    <type>pom</type>
                    <scope>import</scope>
                </dependency>
                <dependency>
                    <groupId>org.codehaus.jackson</groupId>
                    <artifactId>jackson-mapper-asl</artifactId>
                    <version>1.9.13</version>
                </dependency>
                <dependency>
                    <groupId>javax.persistence</groupId>
                    <artifactId>persistence-api</artifactId>
                    <version>1.0</version>
                </dependency>
                <!--链路追踪-->
                <dependency>
                    <groupId>com.uaf</groupId>
                    <artifactId>microservice-sleuth</artifactId>
                    <version>${com.uaf.version}</version>
                </dependency>
                <!--apollo配置中心-->
                <dependency>
                    <groupId>com.uaf</groupId>
                    <artifactId>microservice-apollo</artifactId>
                    <version>${com.uaf.version}</version>
                </dependency>
                <!--核心微服务-http-->
                <dependency>
                    <groupId>com.uaf</groupId>
                    <artifactId>microservice-http</artifactId>
                    <version>${com.uaf.version}</version>
                </dependency>
                <dependency>
                    <groupId>com.uaf</groupId>
                    <artifactId>microservice-aop</artifactId>
                    <version>${com.uaf.version}</version>
                </dependency>
                <!--邮箱服务-->
                <dependency>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-mail</artifactId>
                    <version>2.5.4</version>
                </dependency>
                <!--解压服务-->
                <dependency>
                    <groupId>net.lingala.zip4j</groupId>
                    <artifactId>zip4j</artifactId>
                    <version>2.9.0</version>
                </dependency>
                <!--文件系统-->
                <dependency>
                    <groupId>com.uaf.filesystem</groupId>
                    <artifactId>uaf-filesystem-api</artifactId>
                    <version>${com.uaf.version}</version>
                </dependency>
                <!--redis-->
                <dependency>
                    <groupId>com.uaf</groupId>
                    <artifactId>microservice-redis</artifactId>
                    <version>${com.uaf.version}</version>
                </dependency>
                <dependency>
                    <groupId>com.uaf</groupId>
                    <artifactId>microservice-mask</artifactId>
                    <version>${com.uaf.version}</version>
                </dependency>
            </dependencies>
        </dependencyManagement>

    <build>
        <plugins>
            <!-- 解决IDEA自动重置LanguageLevel和JavaCompiler版本的问题 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
            <!-- install时忽略junit测试 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.5</version>
                <configuration>
                    <skipTests>false</skipTests>
                </configuration>
            </plugin>
            <!--sonar插件-->
            <plugin>
                <groupId>org.sonarsource.scanner.maven</groupId>
                <artifactId>sonar-maven-plugin</artifactId>
                <version>3.5.0.1254</version>
            </plugin>
            <!--sonar覆盖率插件-->
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.7.9</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>prepare-agent</goal>
                            <goal>report</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.4</version>
            </plugin>
        </plugins>
    </build>
</project>